package 类和对象课堂练习.异常;

import 类和对象课堂练习.封装.Zuoye03292;

import java.util.Scanner;

public class Zuoye040621 {
    public static void main(String[] args) {
        Scanner scan=new Scanner(System.in);
        Zuoye04062 a=new Zuoye04062("小孔","北大青鸟");
        System.out.println("请输入"+a.getName()+"老师的年龄");
        try {
            int b=scan.nextInt();
            a.setAge(b);
            a.jieshao();
        } catch (Exception e) {
            e.printStackTrace();
        }
    }
}
